﻿using IBll;
using IDal;
using Model;

namespace Bll
{
    public class UserBll:IUserBll
    {
        private IUserDal dal;

        public UserBll(IUserDal dal)
        {
            this.dal = dal;
        }
        public int Login(string name, string pwd)
        {
            return dal.Login(name, pwd);
        }

        public dynamic Show(int pageindex = 1, int pagesize = 3)
        {
            return dal.Show(pageindex, pagesize);
        }
    }
}
